package Extend;

import org.w3c.dom.ls.LSOutput;

public class Test {
    public static void main(String[] args) {
        //目标: 认识继承,掌握继承的特点
        B b = new B();//在这里子类是由父类和子类这两张设计图一起构建的
        System.out.println(b.i);
        //System.out.println(b.j);报错
        //System.out.println(b.k);报错

        b.print1();
        //b.print2();
        b.print3();
    }
}
